package com.stockz.ui.swing.charting.widget;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import com.stockz.ui.swing.widget.JButton;

public class ResetScripNameComboBoxButton extends JButton implements ActionListener{
	private static final long serialVersionUID = 3548900284670036727L;

	private ScripNameComboBox scripNameComboBox;
	
	public ResetScripNameComboBoxButton(ScripNameComboBox scripNameComboBox) {
		super("Reset");
		addActionListener(this);
		this.scripNameComboBox = scripNameComboBox;
	}
	
	@Override
	public void actionPerformed(ActionEvent e) {
		scripNameComboBox.reset();
	}
}
